package com.rybbaby.tss.platform.sysInterfaceDocument.service;

import com.rybbaby.tss.core.web.service.IBaseService;
import com.rybbaby.tss.platform.sysInterfaceDocument.entity.SysInterfaceDocument;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


/**
 * @description 接口文档数据库操作服务接口
 * 
 * @author 谢进伟
 * 
 * @createDate 2017-01-13 上午11:14:09
 */
public interface ISysInterfaceDocumentService extends IBaseService<SysInterfaceDocument> {
	
	/**
	 * @param entity
	 *            实体对象
	 * @param sessionId
	 *            会话Id
	 * @param loginUserId
	 *            等你用户Id
	 * @param fileRelevances
	 *            文件关联设置,格式：groupName1=>fieldName1=cacheFileId1,groupName2=>
	 * @throws Exception
	 */
	public abstract Serializable save(SysInterfaceDocument entity, String sessionId, String loginUserId, String... fileRelevances) throws Exception;
	
	/**
	 * @param entity
	 *            实体对象
	 * @param sessionId
	 *            会话Id
	 * @param loginUserId
	 *            等你用户Id
	 * @param fileRelevances
	 *            文件关联设置,格式：groupName1=>fieldName1=cacheFileId1,groupName2=>
	 * @throws Exception
	 */
	public abstract void updateEntitiy(SysInterfaceDocument entity, String sessionId, String loginUserId, String delteFileIds, String... fileRelevances) throws Exception;

	public abstract List<Map<String,Object>> groupIdDatasource();
}
